import request from '@/utils/request'

// 查询客户黑名单列表
export function listBlackUser(query) {
  return request({
    url: '/blackUser/blackUser/list',
    method: 'get',
    params: query
  })
}

// 查询客户黑名单详细
export function getBlackUser(id) {
  return request({
    url: '/blackUser/blackUser/' + id,
    method: 'get'
  })
}

// 新增客户黑名单
export function addBlackUser(data) {
  return request({
    url: '/blackUser/blackUser',
    method: 'post',
    data: data
  })
}

// 修改客户黑名单
export function updateBlackUser(data) {
  return request({
    url: '/blackUser/blackUser',
    method: 'put',
    data: data
  })
}

// 删除客户黑名单
export function delBlackUser(id) {
  return request({
    url: '/blackUser/blackUser/' + id,
    method: 'delete'
  })
}

// 移除黑名单
export function romeBlackUser(data) {
  return request({
    url: '/user/user/userUntieDisable',
    method: 'post',
	data: data
  })
}

